<template>
  <div class="li">
    <div class="img">
        <img :src="item.img" alt="" class="img"/>
    </div>
    <div class="detail">
      <p>{{ item.title }}</p>
      <div class="bom">
          <span :class="item.now_stage?'active':''"><i class="iconfont icon-time" v-show="item.edit_time"></i>{{item.edit_time || item.now_stage}}</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: ["item"],
  data() {
    return {};
  },
  mounted() {},
  methods: {},
  components: {},
};
</script>

<style lang='scss' scoped>
.li {
  width: 100%;
  height: 95px;
  padding: 10px;
  display: flex;
  background-color: #fff;
  border: 1px solid #f4f4f4;
  .img {
    width: 120px;
    height: 80px;
   
  }
  .detail {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
    p {
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-box-orient: vertical; /* 设置对齐模式 */
      -webkit-line-clamp: 1; //多行文本溢出隐藏
    }
    .bom {
        color: gray;
    }
  }
  .active {
      display: block;
      width: 60px;
      height: 20px;
      background-color: #39c894;
      color: #fff;
      border-radius: 5px;
  }
}
</style>
